バージョン 24.2 (最新)

ComboFor<TProperty>(Expression<Func<TModel,TProperty>>,IEnumerable,ComboMultiSelectionSettings,String,IDictionary<String,Object>) メソッド

モデルの特定のプロパティの Combo ウィジェットを構成するヘルパー。
シンタックス
public ComboWrapper ComboFor<TProperty>( 
   System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression,
   System.Collections.IEnumerable dataSource,
   ComboMultiSelectionSettings multiSelection,
   System.string nullTextLabel,
   System.Collections.Generic.IDictionary<string,object> htmlAttributes
)

パラメータ

expression
表示するプロパティのあるオブジェクトを識別する式。
dataSource
ComboWrapper の DataSource に関するセッター
multiSelection
ComboWrapper の MultiSelection に関するセッター
nullTextLabel
ComboWrapper の NullText に関するセッター
htmlAttributes
ComboWrapper の HtmlAttributes に関するセッター

型パラメータ

TProperty
プロパティのタイプ。

戻り値の型

ComboWrapper の新しいインスタンス
参照

オンラインで表示: GitHub